/*
set sidebar open or close,and some app setting
 */
const state = {
  opened: sessionStorage.getItem('open') ? sessionStorage.getItem('open') : 'false',
  imgShare:false,
}
const mutations = {
  SET_OPENED (state, payload) {
    console.log('state, payload', state, payload)
    state.opened = String(payload)
    sessionStorage.setItem('open', payload)
  },
  SET_IMGSHARE (state, payload) {
    state.imgShare = payload
  }
}
export default {
  namespaced: true,
  state,
  mutations
}
